<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>返回传入的任意三个数字的最大值。</title>
    <script>
        function getMax(num1, num2, num3) {
            var max = num1;
            if (max < num2) {
                max = num2;
            }
            if (max < num3) {
                max = num3;
            }
            return max;
        }
        console.log(getMax(1, 11, 22));
        console.log(getMax(3, 2, 1));
        console.log(getMax(4, 9, 3));
    </script>
</head>

<body>

</body>

</html>